<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <style>
            *{
                font-size:12px;
                letter-spacing: 1px;
            }
/*            table{border-right:2px solid black;border-bottom:2px solid black}
            table td{border-left:2px solid black;border-top:2px solid black}*/
            .text-right{
                text-align:right;
            }
            .text-center{
                text-align:center;
            }
            .bdt{
                border-bottom:2px solid black;
            }
        </style>
    </head>
    <body>
 <?php foreach($this->data as $k=>$v){ ?>      
        <table style="margin:auto;width:90%;height:450px;"  cellspacing="0" cellpadding="0">
<tr style="height:25px;">
    <td colspan="3"><div style="height:25px;"><b>会员名称-客户结算单</b></div></td>
</tr>
            <tr style="height:20px;">
                <td>客户编号:<b><?php echo $v['custom_id'] ?></b></td>
                <td></td>
                <td class="text-right">船名/航次:<b><?php echo $v['ship_name'].'/'.$v['ship_line'] ?></b></td>
            </tr>
            <tr style="height:20px;">
                <td>客户名称:<b><?php echo $v['custom'] ?></b></td>
<td></td>
<td class="text-right">箱型/箱量:<b><?php echo $v['box_name'] ?></b></td>
            </tr>
            <tr style="height:20px;">
                <td >日期:<b><?php echo date("Y-m-d"); ?></b></td>
<td ></td>
<td class="text-right">提单号:<b><?php echo $v['lading_code'] ?></b></td>
            </tr>
            <tr style="height:20px;">
                <td class="text-center bdt" style="width:35%;">费用明细</td>
                <td   class="text-center bdt" style="width:30%;"></td>
                <td  class="text-center bdt" style="width:35">金额</td>
            </tr>
            <?php if($v['money1'] > 0){ ?>
            <tr style="height:20px;">
                <td class="text-center">运费</td>
                <td class="text-center"></td>
                <td class="text-center"><?php echo $v['money1'] ?>&yen;</td>
            </tr>
            <?php  } ?>
            <?php if($v['money2'] > 0){ ?>
            <tr style="height:20px;">
                <td class="text-center">待时费</td>
                <td class="text-center"></td>
                <td class="text-center"><?php echo $v['money2'] ?>&yen;</td>
            </tr>
            <?php  } ?>
            <?php if($v['money3'] > 0){ ?>
            <tr style="height:20px;">
                <td class="text-center">预提费</td>
                <td class="text-center"></td>
                <td class="text-center"><?php echo $v['money3'] ?>&yen;</td>
            </tr>
            <?php  } ?>
            <?php if($v['money4'] > 0){ ?>
            <tr style="height:20px;">
                <td class="text-center">洋山费</td>
                <td class="text-center"></td>
                <td class="text-center"><?php echo $v['money4'] ?>&yen;</td>
            </tr>
            <?php  } ?>
            <?php if($v['money5'] > 0){ ?>
            <tr style="height:20px;">
                <td class="text-center">落/还箱费</td>
                <td class="text-center"></td>
                <td class="text-center"><?php echo $v['money5'] ?>&yen;</td>
            </tr>
            <?php  } ?>
            <?php if($v['money6'] > 0){ ?>
            <tr style="height:20px;">
                <td class="text-center">打/改单费</td>
                <td class="text-center"></td>
                <td class="text-center"><?php echo $v['money6'] ?>&yen;</td>
            </tr>
            <?php  } ?>
            <?php if($v['money7'] > 0){ ?>
            <tr style="height:20px;">
                <td class="text-center">理货费</td>
                <td class="text-center"></td>
                <td class="text-center"><?php echo $v['money7'] ?>&yen;</td>
            </tr>
            <?php  } ?>
            <?php if($v['money8'] > 0){ ?>
            <tr style="height:20px;">
                <td class="text-center">超重费</td>
                <td class="text-center"></td>
                <td class="text-center"><?php echo $v['money8'] ?>&yen;</td>
            </tr>
            <?php  } ?>
            <?php if($v['money9'] > 0){ ?>
            <tr style="height:20px;">
                <td class="text-center">疏港费</td>
                <td class="text-center"></td>
                <td class="text-center"><?php echo $v['money9'] ?>&yen;</td>
            </tr>
            <?php  } ?>
            <?php if($v['money10'] > 0){ ?>
            <tr style="height:20px;">
                <td class="text-center">港杂费</td>
                <td class="text-center"></td>
                <td class="text-center"><?php echo $v['money10'] ?>&yen;</td>
            </tr>
            <?php  } ?>
            <?php if($v['money11'] > 0){ ?>
            <tr style="height:20px;">
                <td class="text-center">坏/污箱费</td>
                <td class="text-center"></td>
                <td class="text-center"><?php echo $v['money11'] ?>&yen;</td>
            </tr>
            <?php  } ?>
            <?php if($v['money12'] > 0){ ?>
            <tr style="height:20px;">
                <td class="text-center">其他费</td>
                <td class="text-center"></td>
                <td class="text-center"><?php echo $v['money12'] ?>&yen;</td>
            </tr>
            <?php  } ?>
            <?php if($v['money13'] > 0){ ?>
            <tr style="height:20px;">
                <td class="text-center">代垫费</td>
                <td class="text-center"></td>
                <td class="text-center"><?php echo $v['money13'] ?>&yen;</td>
            </tr>
            <?php  } ?>
            <?php if($v['money14'] > 0){ ?>
            <tr style="height:20px;">
                <td class="text-center">税金</td>
                <td class="text-center"></td>
                <td class="text-center"><?php echo $v['money14'] ?>&yen;</td>
            </tr>
            <?php  } ?>
            <?php if($v['money15'] > 0){ ?>
            <tr style="height:20px;">
                <td class="text-center">代收费</td>
                <td class="text-center"></td>
                <td class="text-center"><?php echo $v['money15'] ?>&yen;</td>
            </tr>
            <?php  } ?>
            <tr>
                <td colspan="3">
                    <div><span style="padding-left:80%">合计:<?php echo($v['money1']+$v['money2']+$v['money3']+$v['money4']+$v['money5']+$v['money6']+$v['money7']+$v['money8']+$v['money9']+$v['money10']+$v['money11']+$v['money12']+$v['money13']+$v['money14']+$v['money15']); ?>&yen;</span></div>
                    <div style="margin-top:10px;">备注信息:</div>
                </td>
            </tr>
        </table>
<?php } ?>
    </body>
</html>
